from pyrogram import filters
from pyrogram.handlers import MessageHandler

from settings import pyrogram_app as app
from settings import scheduler
import handlers


app.add_handler(
    MessageHandler(handlers.show_welcome_message, filters.command('start'))
)
app.add_handler(
    MessageHandler(handlers.add_new_web_address, filters.command('set'))
)
app.add_handler(
    MessageHandler(handlers.show_latest_ping, filters.command('list'))
)

scheduler.start()
app.run()
